﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Ds.DataBase.Enum;

namespace Ds.DataBase.Model
{
    /// <summary>
    /// 模板头信息
    /// </summary>
    public class MoBan_Main
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int mbid { set; get; }
        /// <summary>
        /// 模板名称
        /// </summary>
        public string mbmc { set; get; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime cjsj { set; get; } = DateTime.Now;
        /// <summary>
        /// 创建人ID
        /// </summary>
        public Guid cjr { set; get; }
        /// <summary>
        /// 模板类型
        /// </summary>
        public 模板类型 mbtype { set; get; }
        /// <summary>
        /// 是否使用
        /// </summary>
        //[DefaultValue(true)]
        public bool isuse { set; get; } = true;
        public virtual ICollection<MoBan_Path> MoBan_Paths { set; get; }
        //public virtual ICollection<ZhiWei> ZhiWeis { set; get; }
        /// <summary>
        /// P_MoBan_Pahts弃用
        /// </summary>
        public virtual ICollection<MoBan_Path> P_MoBan_Pahts { set; get; }
        public virtual ICollection<KeShiZhiWu> keshizhiwus { set; get; }
    }
}
